<%@page import="org.xiaom.butler.bean.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%!Hotel bean;%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>酒店管理</title>
<style type="text/css">
td {
	text-align: center;
}
a {
	text-decoration: none;
}
</style>
</head>
<body>
	<div>
		<a href="../index.jsp">首页</a>-><a>酒店管理</a>
	</div>
	<br />
	<div>
		<a href="./add.jsp">添加</a>
	</div>
	<br />
	<table width="auto" height="101" border="1">
		<tr>
			<th width="400px">名称</th>
			<th width="80px">版本</th>
			<th width="240px" align="center">操作</th>
		</tr>
		<%
			List<org.xiaom.butler.bean.Hotel> list = (List) request
					.getAttribute("bean_list");
			for (int i = 0; i < list.size(); i++) {
				bean = list.get(i);
		%>
		<tr>
			<td><a href="../department/list.jsp?hotel=<%= bean.getId()%>"><%=bean.getName()%></a>
			</td>
			<td ><%=bean.getVersion() %></td>
			<td><div style="text-align: center;">
					<a href="./delete.do?id=<%=bean.getId()%>">删除</a> | <a
						href="./edit.jsp?id=<%=bean.getId()%>">修改</a> | <a href="./levelUp.do?id=<%=bean.getId()%>">更新版本</a>
				</div>
			</td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>